package com.itheima.ssm.dao;

import com.itheima.ssm.domain.SysLong;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ISysLogDao {

    @Insert("insert into syslog (visitTime,username,ip,url,executionTime,method) " +
            "values (#{visitTime},#{username},#{ip},#{url},#{executionTime},#{method})")
    public void saveLog(SysLong sysLong) throws Exception;

    @Select("select *from  syslog")
    List<SysLong> findAll();
}
